import { useContext } from 'react';
import Context from '../context';

function useEditor() {
  const { editor } = useContext(Context);
  return [editor];
}

export default useEditor;